<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${customer.id}"  type="hidden">
												
																																	<div class="form-group">	
								<label class="col-sm-3 control-label">编号：</label>
								<div class="col-sm-8">
																		<input id="number" name="number" th:value="${customer.number}" class="form-control" type="text">
																	</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">名称：</label>
								<div class="col-sm-8">
																		<input id="name" name="name" th:value="${customer.name}" class="form-control" type="text">
																	</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">地址：</label>
								<div class="col-sm-8">
																		<input id="address" name="address" th:value="${customer.address}" class="form-control" type="text">
																	</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">电话号码：</label>
								<div class="col-sm-8">
																		<input id="phone" name="phone" th:value="${customer.phone}" class="form-control" type="text">
																	</div>
							</div>
							<!--<div class="form-group">
								<label class="col-sm-3 control-label">状态：</label>
								<div class="col-sm-8">
									<input id="status" name="status" th:value="${customer.status}" class="form-control" type="text">
								</div>
							</div>-->
							<div class="form-group">
								<label class="col-sm-3 control-label">状态：</label>
								<div class="col-sm-8">
									<select id="status" name="status"  class="form-control valid" style="width: 100%" >
										<option value="0" th:selected="${customer.status == 0 }">正常</option>
										<option value="1" th:selected="${customer.status == 1 }">废弃</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">等级：</label>
								<div class="col-sm-8">
																		<input id="grade" name="grade" th:value="${customer.grade}" class="form-control" type="text">
																	</div>
							</div>
							<!--<div class="form-group">
								<label class="col-sm-3 control-label">性质：</label>
								<div class="col-sm-8">
																		<input id="nature" name="nature" th:value="${customer.nature}" class="form-control" type="text">
																	</div>
							</div>-->
							<!--<div class="form-group">
								<label class="col-sm-3 control-label">是否签约：</label>
								<div class="col-sm-8">
									<input id="signStatus" name="signStatus" th:value="${customer.signStatus}" class="form-control" type="text">

								</div>
							</div>-->
							<div class="form-group">
								<label class="col-sm-3 control-label">是否签约：</label>
								<div class="col-sm-8">
									<select id="signStatus" name="signStatus"  class="form-control valid" style="width: 100%" >
										<option value="0" th:selected="${customer.signStatus == 0 }">未签约</option>
										<option value="1" th:selected="${customer.signStatus == 1 }">已签约</option>
									</select>
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">积分：</label>
								<div class="col-sm-8">
																		<input id="integral" name="integral" th:value="${customer.integral}" class="form-control" type="text">
																	</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">来源：</label>
								<div class="col-sm-8">
																		<input id="source" name="source" th:value="${customer.source}" class="form-control" type="text">
																	</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">描述：</label>
								<div class="col-sm-8">
																		<textarea id="content" name="content" th:text="${customer.content}" class="form-control" rows="5"></textarea>
																	</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">性别：</label>
								<div class="col-sm-8">
									<select id="sex" name="sex"  class="form-control valid" style="width: 100%" >
										<option value="0" th:selected="${customer.sex == 1 }">男</option>
										<option value="1" th:selected="${customer.sex == 2 }">女</option>
									</select>
								</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">微信号：</label>
								<div class="col-sm-8">
																		<input id="wechat" name="wechat" th:value="${customer.wechat}" class="form-control" type="text">
																	</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">跟踪次数：</label>
								<div class="col-sm-8">
																		<input id="trackingNumber" name="trackingNumber" th:value="${customer.trackingNumber}" class="form-control" type="text">
																	</div>
							</div>
							<!--<div class="form-group">
								<label class="col-sm-3 control-label">创建时间：</label>
								<div class="col-sm-8">
																		<input id="creatDate" name="creatDate" th:value="${customer.creatDate}" class="form-control" type="text">
																	</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">更新时间：</label>
								<div class="col-sm-8">
																		<input id="editDate" name="editDate" th:value="${customer.editDate}" class="form-control" type="text">
																	</div>
							</div>-->
																				<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
									<button type="button" class="btn closeBtn" onclick="myClose();">关闭</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="/js/appjs/hnzk/customer/edit.js">
	</script>
	<script>
		function myClose(){
			var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
			parent.layer.close(index); //再执行关闭

		}

	</script>
</body>
</html>
